<?php
/**
 * csmbol Model for csmbol World Component
 * 
 * @package    Joomla.Tutorials
 * @subpackage Components
 * @link http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_2
 * @license    GNU/GPL
 */
 
// No direct access
 
defined( '_JEXEC' ) or die( 'Restricted access' );
 
jimport( 'joomla.application.component.model' );

 
/**
 * csmbol Model
 *
 * @package    Joomla.Tutorials
 * @subpackage Components
 */
class csmbolModelcsmbol extends JModel
{
    /**
    * Gets the greeting
    * @return string The greeting to be displayed to the user
    */
    function getGreeting()
    {
    	$db = & Jfactory::getDBO();
    	
    	$query = 'SELECT greeting FROM #__csmbol WHERE id = 2';
    	$db->setQuery($query);
    	$greeting = $db->loadResult();
    	
        return $greeting;
    }
	
	function createDateTimeBoxList(){
		
		//create first date time box and pass '1' as the displaying box number
		$theFirstDateTimeBox = new DateTimeBox(1);
		$theDateTimeBoxList = new DateTimeBoxList();
//		$theDateTimeBoxList->
		
	}
}